https://cypress.io logo
<nav className="navbar navbar-expand-lg navbar-dar...
# e2e-testing
p
Game Zone Games Add Game Delete Game I have 3 questions here - 1. how can I check the number of links present in navbar? 2. how can I fetch all the tags? which of the below options can I use ? cy.get('li') cy.get('[class="nav-item"]') cy.get('li[class="nav-item"]') 3. how to click on the third link present in navbar and then check if it redirects to "deleteGame" url ? Tried below code to click on third link and check redirection to deleteGame url - please correct me. it(navigates to Delete Game on click of nav link:, () =>{ cy.get('.nav-link').then( (navlink)=>{ navlink[2].click(); cy.url(should("contain", "deleteGame") }) })